package com.leaf.lowcode.utils;


import org.dom4j.Document;
import org.dom4j.io.SAXReader;

import java.io.InputStream;

public class LoadXmlUtil {

    public Document loadXml(String location) {
        InputStream in = this.getClass().getClassLoader().getResourceAsStream(location);
        try {
            SAXReader saxReader = new SAXReader();
            return saxReader.read(in);
        } catch (Exception e) {
            e.printStackTrace();
        }
return null;
    }
}
